﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Shapes;

namespace Aletfa.LightManager.Board
{
    internal sealed class Cell
    {
        public UIElement Graphic { get; set; }

        public UnitPieceControl Piece { get; set; }

        public BoardPointer Location
        {
            get { return new BoardPointer() { Column = Grid.GetColumn(this.Graphic), Row = Grid.GetRow(this.Graphic) }; }
        }

        public bool Available { get; set; }

        public Cell()
        {
            this.Available = true;
        }
    }
}
